import 'package:flutter/material.dart';
import 'package:flutter_queen_demo/page/test0014.dart';

import '../widget/app_push_button.dart';

class Test0013 extends StatefulWidget {
  Test0013({super.key});

  @override
  State<Test0013> createState() => Test0013State();
}

class Test0013State extends State<Test0013> {
  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    print('1234567898');
    super.dispose();
  }


  @override
  Widget build(BuildContext context) {
    GlobalKey key = widget.key as GlobalKey;
    return Scaffold(
        appBar: AppBar(
          title: Text("Test0013"),
        ),
        body: Column(
          children: [
            AppPushButton("test13", Test0014(key)),
            OutlinedButton(
              child: Text("123"),
              onPressed: () {
                showDialog(
                    context: context,
                    builder: (BuildContext context) {
                      return Center(
                        child: Container(
                          width: 200,
                          height: 200,
                          color: Colors.red,
                        ),
                      );
                    });
              },
            )
          ],
        ));
  }
}
